/**
 * Created by Weizehua on 2017/1/17.
 */
import {Injectable} from "@angular/core";
import {UserInfo} from "./UserInfo/user-info";

@Injectable()
export class UserService {
    get userInfo(): UserInfo {
        return this._userInfo;
    }

    setUserInfo(userInfo: UserInfo) {
        this._userInfo = userInfo;
    }

    private _userInfo:UserInfo = {
        id: "",
        signature: "",
        permission: {user: true},
        nickname: "",
        headUrl: "",
    };

}
